package com.lecture.java8.test.a;

import com.google.common.util.concurrent.ThreadFactoryBuilder;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.*;

public class Mug {

    ThreadFactory namedThreadFactory = new ThreadFactoryBuilder()
            .setNameFormat("demo-%d").build();

    Map<String,Object> map = new HashMap<>(16);
    ExecutorService executorService = new ThreadPoolExecutor(1,1,0L, TimeUnit.MILLISECONDS,
            new LinkedBlockingDeque<>(1024),namedThreadFactory,new ThreadPoolExecutor.AbortPolicy());

    public Mug(int i) {
        System.out.println("创建Mug对象：" + i);
    }
}
